<div class="rev-list">
    <ul>
    <#if (page.content?size>0)>
        <#list page.content as c>
            <li class="rev-item comment-item clearfix">
                <div class="user"><a class="avatar" href="" target="_blank"><img
                        src="${c.headImgUrl}"
                        width="48" height="48"></a><span class="level">LV.${c.level!}</span></div>
            <#-- <a class="useful" data-id="191407415" title="点赞">
                            <i></i><span class="useful-num">1</span>
                        </a>-->
                <a class="name" href="/u/52068941.html" target="_blank">${c.nickname!}</a>
                <span class="s-star s-star${c.startNum!0}"></span>
                <p class="rev-txt">
                    ${c.content!}
                </p>
                <div class="rev-img">
                    <#if c.scImg?? && c.scImg!=''>
                    <a href="/scenic/detial?id=${c.scenicId!}"><img
                            src="${(c.scImg)!}"
                            width="200" height="120"></a>
                    </#if>
                </div>
                <div class="info clearfix">
                    <a class="btn-comment _j_comment" title="添加评论">评论</a>
                    <span class="time">${c.createTime?string("yyyy-MM-dd HH:mm:ss")}</span>
                </div>
            <#--回复点评-->
            <#--

                        <#list  c.refComment! as crr >
                             ${(crr.username)!} 回复:${c.username}
                             ${(crr.comment)!}<br>
                        </#list>
            -->

                <div class="comment add-reply ">
                    <ul class="more_reply_box comment_list">
                        <#list c.refComment! as son>
                        <li>
                            <a href="/#" target="_blank">
                                <img src="${(son.headImgUrl)}"
                                     width="20" height="20">${son.nickname}
                            </a>
                            ：${(son.content)!}
                            <a class="_j_reply re_reply" data-id="625204" data-uid="63107989"
                               data-username="${(son.nickname)!}" title="添加回复"><#--回复--></a>
                            <br><span class="time">${(son.createTime)?string("yyyy-MM-dd HH:mm:ss")}</span>
                        </li>
                        </#list>
                        <#--<li>
                            <a href="/u/52068941.html" target="_blank">
                                <img src="http://b1-q.mafengwo.net/s10/M00/3D/07/wKgBZ1neKm2AcOhrAB5yLMoWpHI47.jpeg?imageMogr2%2Fthumbnail%2F%2116x16r%2Fgravity%2FCenter%2Fcrop%2F%2116x16%2Fquality%2F90"
                                     width="16" height="16">红袖·紫月
                            </a>
                            回复🍓辣辣辣辣王🍓：十几分钟吧
                            <a class="_j_reply re_reply" data-id="638560" data-uid="52068941"
                               data-username="红袖·紫月" title="添加回复">回复</a>
                            <br><span class="time">2019-07-01 14:18:01</span>
                        </li>-->
                    </ul>
                    <div class="add-comment hide reply-form">
                        <textarea class="comment_reply${c_index+1}" data-comment_id="191407415"
                                  data-comment_username="红袖·紫月" data-poi_id="25091" data-poi_name="广州塔"
                                  data-parent_id="" data-parent_uid="" data-parent_username=""
                                  style="overflow: hidden; color: rgb(204, 204, 204);">  </textarea>
                        <a class="btn btn_submit_reply${c_index+1}">回复</a>
                    </div>
                </div>
                <script>
                    $('.btn_submit_reply${c_index+1}').click(function () {
                        var commentSon =$('.comment_reply${c_index+1}').val();
                        console.log(commentSon);
                        var commentId="${c.id}";
                        console.log(commentId);
                        $.post('/scenic/commentAdd',{
                           scenicId:${c.scenicId} ,
                           id:commentId,
                           content:commentSon,
                           type:1
                        },function (data) {
                            if(data.success){
                                alert("回复成功");
                                window.location.reload();
                            }else{
                                alert(data.msg);
                            }
                        })
                    })
                </script>
            </li>
        </#list>
    <#else>
        <li class="rev-item comment-item clearfix">
            <P class="mhd mhd-large">暂无评论</P>
        </li>
    </#if>
    </ul>
</div>
<div align="right" class="m-pagination">

    <form id="kwSearchForm" action="/scenic/commentList" method="post">
        <input type="hidden" name="currentPage" value="1" id="currentPage">
        <#--<input type="hidden" name="scenicId" value="${detail.id!}">-->
    <#-- <input type="hidden" name="destId" value="${dest.id}" id="destId">
     <input type="hidden" name="tagId" value="${qo.tagId!-1}" id="tagId">-->
    </form>

<#include "../common/pageSearch.ftl">
</div>


